//
//  RoutePlanningViewController.h
//  didacar
//
//  Created by 度周末网络-王腾 on 15/11/30.
//  Copyright © 2015年 dzmmac. All rights reserved.
//

#import "BaseViewController.h"
#import "RideViewController.h"

typedef NS_ENUM(NSInteger,RoutePlanningStatus){
    /* 路线发起 */
    RoutePlanningWaite,
    /* 路线完成 */
    RoutePlanningSuccess,
    /* 路线完成直通车 */
    RoutePlanningThroughBus,
    
    /* 我的形成线路详情 */
    RoutePlanningTravel,
    
    /* 出票*/
    RoutePlanningTicket
};

@protocol RoutePlanningRideDelegate <NSObject>

-(void)rideStatusFailer;

@end

@interface RoutePlanningViewController : BaseViewController


@property (assign , nonatomic) id<RoutePlanningRideDelegate> delegate;

@property (nonatomic,weak) RideViewController *rideViewController;

@property (nonatomic,assign) RoutePlanningStatus routePlanningStatus;

// 线路为报名和报名时的经纬度、起点和终点
@property (nonatomic,strong) NSMutableArray *routePlanModels;

// 线路
@property (nonatomic , strong) NSString *lineId;

// 上车点
@property (nonatomic , assign) NSInteger StartStationId;

// 下车点
@property (nonatomic , assign) NSInteger EndStationId;

// 班次ID
@property (nonatomic , assign) NSInteger BCID;

// 点击切换地点的经纬度
@property (nonatomic , strong) NSDecimalNumber *lat;

@property (nonatomic , strong) NSDecimalNumber *lng;

@property (nonatomic , strong) NSString *TicketTime;

// 我的行程
@property (nonatomic , assign) NSInteger OrderDetailId;
-(void)getDetailData;

@end
